package com.SouthernWall_404.Age_Capitalism.common.Init;

import com.SouthernWall_404.Age_Capitalism.AgeCapitalism;
import com.SouthernWall_404.Age_Capitalism.common.World.Entity.StoreBlockEntity;
import net.minecraft.world.inventory.ResultContainer;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModBlockEntities {
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITY_TYPE=DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, AgeCapitalism.MODID);

    // 示例注册代码
    public static final RegistryObject<BlockEntityType<StoreBlockEntity>> STORE_BLOCK_ENTITY =
            BLOCK_ENTITY_TYPE.register("store_block_entity", () ->
                    BlockEntityType.Builder.of((pos, state) -> new StoreBlockEntity(pos, state), ModBlocks.STORE_BLOCK.get())
                            .build(null));
}